<?php
	require('jacked_configVars.php');
	require('jacked_functions.php');		
	if(!validateLogin()){
		exit();
	}
	require('jacked_configpdnet.php');
	require('jacked_pdnetfunctions.php');	
	require('jacked_managepdnet_api.php');
	
	//template
    $nav_top = array(
        'admin' => true
	);
	$nav_bottom = array(
		'pdnet' => true
	);
    $hide_sidebar = true;
	$script_includes = array('script.js', 'PoorAPI.js');
	$jacked_lib_js_includes = array('simplemodal');
    
	require('bodyTop.php');
	echo JACKED_HEADING_STRING;

?>	

   	<h2>JACKED PoorDecisions.net</h2>
	
	<h4>THE QUEUE IS THIS FUCKING LONG:</h4>
	<div id="queueCount"><?php echo getQueueLength(); ?></div>
	<br class="cleanup" />
	<h4>THERE ARE THIS FUCKING MANY SUBMISSIONS: </h4>
	<div id="submissionsCount"><?php echo getSubmissionsLength(); ?></div>
	<br class="cleanup" />
	
	<table id="submissionlist" width="100%">
		<tr>
			<td>
				<img src="/images/spinner.gif" /> loading...
			</td>
		</tr>
	</table>
	
	<input id="showqq" type='button' name='osx' value='HIDDENBUTTON THIS BUTTON IS HIDED CANT SEE ME' class='osx' style="display:none" />
	
	<div id="osx-modal-content">
		<div id="osx-modal-title">Making Doing Posting Does</div>
		<div class="close"><a href="#" class="simplemodal-close">x</a></div>
		<div id="osx-modal-data">
			<div id="qqStatus">
				Nothin's happening.
			</div>
			<h2>Let's Do This</h2>
			<form id="qqer">
				<input type="hidden" id="qqID" value="" />
				<p>Decision:<br />
					<textarea id="qqDecision" rows="2" cols="67"></textarea>
				</p>
				<p>Result:<br />
					<textarea id="qqResult" rows="2" cols="67"></textarea>
				</p>
				<p>Tags:<br />
					<textarea id="qqTags" rows="2" cols="67"></textarea>
					<div id="tagMatches" style="display:none; width:600px; background:#fff;"></div>
					
				</p>
			
				<p><input type="submit" value="Make Done" /> <button class="simplemodal-close">Fuck It (bail)</button></p>
			</form>
		</div>
	</div>
	
<div class="blogspace"></div>
<a href="jacked_admin.php">Cancel/Back</a>


<?php	
	require('bodyBottom.php');
?>